TST: Use tempdir for cufile tests (and mark some as thread unsafe) #2218
Conversation
It seems that changing these to use a temp_dir (necessary to run them in parallel in multiple threads) also fixes the CI failures.
|
/ok to test b9f4c54 |
This comment has been minimized.
This comment has been minimized.
mdboom
left a comment
There was a problem hiding this comment.
LGTM, but also pinging @sourabgupta3 for viz.
|
@sourabgupta3 if you have any thoughts, happy to follow up. But I think it's low-risk and I would like to not pile up related PRs. Beyond using |
This comment has been minimized.
This comment has been minimized.
1 similar comment
|
| xfail_handle_register = pytest.mark.xfail( | ||
| condition=isSupportedFilesystem() and os.environ.get("CI") is not None, | ||
| raises=cufile.cuFileError, | ||
| reason="handle_register call fails in CI for unknown reasons", | ||
| ) |
There was a problem hiding this comment.
There was a problem hiding this comment.
My bot told me that if @sourabgupta3 or @rsarpangalav could confirm that the actual root cause of us having to add xfail_handle_register was because the CWD being on a non-ext4 mount inside the container, then this PR would allow us to declare #1307 as resolved and close it.
There was a problem hiding this comment.
Sorry for being impatient. This only affects os.environ.get("CI") is not None so I would think QA doesn't matter.
However... I glanced over isSupportedFilesystem() and that was silly. The temporary folder is not necessarily on the same file system after all. I'll follow up.
There was a problem hiding this comment.
I opened gh-2233 but maybe with some input (or revisiting) we can also figure out which check is missing from the supported filesystem check that would have made it reliable on CI.
Description
Split out, since it also seems that changing these to use a temp_dir (necessary to run them
in parallel in multiple threads) also fixes the CI failures.
This PR also adds
thread_unsafemarkers to a few tests here (and to thepytest.ini, I have used the other one for other tests in the full changeset)Towards gh-2194
Checklist